package com.iqiyi.pps.epg.api.utils;

/**
 * Created by IntelliJ IDEA.
 * User: Qiyi
 * Date: 12-10-23
 * Time: 下午5:55
 * To change this template use File | Settings | File Templates.
 */
public class ApiMessageUtils {

    public static final String VIRTUAL_TOPIC_PREFIC="VirtualTopic.";


    public static final String CHAT_CONTROL_MQ="chat_control_mq";//聊天控制
    public static final String SHOW_LIVE_PREFIX = "show_live_";//聊天控制
    public static final String ACCESS_MESSAGE_PROCESS_MQ="access_message_process_mq";//内部处理
    public static final String CHAT_SERVER_API_MQ="chat_server_api_mq";//踢人公告等消息

    public static Long FirstDelayTime = 10000L;
    public static  int DelayTimeMultiple = 2;
    public static  int MaxResendTimes = 8;

    public static Long getMessageDelay(int processCount){
        switch (processCount){
            case 1:
                return 10*1000L;
            case 2:
                return 10*1000L;
            case 3:
                return 20*1000L;
            case 4:
                return 30*1000L;
            case 5:
                return 10*60*1000L;
            case 6:
                return 2*60*60*1000L;
            case 7:
                return 6*60*60*1000L;
            case 8:
                return 15*60*60*1000L;
            default:
                return 10000L;
        }
    }

}
